<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .house {
      position: relative;
      display: inline-block;
      clear: both;
    }
    .mask {
      background-color: black;
      opacity: 0.5;
      position: absolute;
    }
    .mask.light {
      opacity: 0;
    }
    .bedroom {
      left: 231px; top: 187px; width: 94px; height: 92px;
    }
    .bathroom {
      left: 329px; top: 187px; width: 102px; height: 92px;
    }
    .laundry {
      left: 435px; top: 187px; width: 82px; height: 92px;
    }
    .livingroom {
      left: 231px; top: 282px; width: 146px; height: 92px;
    }
    .kitchen {
      left: 380px; top: 282px; width: 137px; height: 92px;
    }
    .doorway {
      left: 231px; top: 380px; width: 110px; height: 95px;
    }
    .diningroom {
      left: 395px; top: 380px; width: 122px; height: 95px;
    }
    .switchs {
      text-align: center;
    }
  </style>
</head>
<body>
  <div class='house'>
    <img src="./house.png">
    <div class='mask light bedroom'></div>
    <div class='mask bathroom'></div>
    <div class='mask laundry'></div>
    <div class='mask livingroom'></div>
    <div class='mask kitchen'></div>
    <div class='mask doorway'></div>
    <div class='mask diningroom'></div>
    <div class='switchs'>
      灯：
      <button>卧室:开</button>
      <button>卫生间:关</button>
      <button>洗衣房:关</button>
      <button>客厅:关</button>
      <button>厨房:关</button>
      <button>玄关:关</button>
      <button>饭厅:关</button>
      <button>全部:关</button>
    </div>
  </div>

</body>
</html>